cmake_minimum_required(VERSION 3.10)
project(videocompose)

set(CMAKE_CXX_STANDARD 11)
set(INC_DIR /usr/include/GraphicsMagick /usr/include/ffmpeg /usr/include/libyuv)
set(LIBS avformat avcodec avfilter avutil swscale swresample m GraphicsMagick yuv)

include_directories(${INC_DIR})
link_libraries(${LIBS})

add_executable(videocompose main.c gmutils.c ffutils.c utils.c yuvutils.cpp gmutils.h ffutils.h utils.h yuvutils.h)

target_link_libraries(videocompose ${LIBS})